package cn.bone.ou.scheduled.job;

import cn.bone.ou.community.mapper.CommitteeMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
@Slf4j
public class CommitteeJob {

    @Resource
    private CommitteeMapper committeeMapper;

    /**每分钟执行一次,更新业委会是否过期*/
    public void execute(){
        int i = committeeMapper.checkState();
        log.info("检查业委会到期时间,["+ i +"]个业委会到期");
    }
}
